package org.jeecg.modules.dongchen.service;

import org.jeecg.modules.dongchen.entity.DcLunbo;
import org.jeecg.modules.dongchen.entity.DcAnli;
import org.jeecg.modules.dongchen.entity.DcHome;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.dongchen.vo.DcHomePage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 首页
 * @Author: jeecg-boot
 * @Date:   2022-03-01
 * @Version: V1.0
 */
public interface IDcHomeService extends IService<DcHome> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(DcHome dcHome,List<DcLunbo> dcLunboList,List<DcAnli> dcAnliList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(DcHome dcHome,List<DcLunbo> dcLunboList,List<DcAnli> dcAnliList);

	/**
	 * 删除一对多
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	public DcHomePage onePage();

}
